Set an error when loading a GtkIconInfo fails
authorMatthias Clasen <mclasen@redhat.com>
Wed, 16 Oct 2013 00:00:57 +0000 (20:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Oct 2013 00:06:24 +0000 (20:06 -0400)
Failure to do so leads to assertion failures.
https://bugzilla.gnome.org/show_bug.cgi?id=710073

gtk/gtkicontheme.c

index 7fc76bf703c75b96aee8444ea46c97f24ff284c8..bf5a224e5624569518c286cf089ce956b86a0329 100644 (file)
@@ -4193,7 +4193,7 @@ _gtk_icon_info_load_symbolic_internal (GtkIconInfo  *icon_info,
       css_error = gdk_color_to_css (&error_default_color);
     }
 
-  if (!g_file_load_contents (icon_info->icon_file, NULL, &file_data, &file_len, NULL, NULL))
+  if (!g_file_load_contents (icon_info->icon_file, NULL, &file_data, &file_len, NULL, error))
     return NULL;
 
   if (!icon_info->symbolic_pixbuf_size)